package com.tarena.lbs.article.web.controller;

import com.tarena.lbs.article.web.service.ActionService;
import com.tarena.lbs.base.protocol.exception.BusinessException;
import com.tarena.lbs.base.protocol.model.Result;
import com.tarena.lbs.pojo.content.param.ArticleActionParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ActionController {
    @Autowired
    private ActionService actionService;
    @PostMapping("/admin/content/article/behavior")
    public Result<Void> actionSave(ArticleActionParam param)
            throws BusinessException {
        actionService.actionSave(param);
        return Result.success();
    }
}

